package com.common.link.config;

import com.common.utils.constant.Constants;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 描述：
 * 参加 common-config项目下 link.yml
 * @author xianggj
 * @Date 2022/3/3 16:44
 **/
@Setter
@ConfigurationProperties(prefix = "link.remote")
public class LinkConfig {

    public static final String HEADER = "X-Access-Token";
    public static final String WS_HEADER = "token";

    private String address;

    private String entityList;

    private String relationList;

    private String getUser;

    private String getUserList;

    private String getOfficeList;

    private int loginFailCode;

    private String excludeUrls;

    public String getAddress() {
        return address;
    }

    public String getEntityList() {
        return Constants.HTTP_HEADER + address + entityList;
    }

    public String getRelationList() {
        return Constants.HTTP_HEADER + address +relationList;
    }

    public String getGetUser() {
        return Constants.HTTP_HEADER + address +getUser;
    }

    public String getGetUserList() {
        return Constants.HTTP_HEADER + address +getUserList;
    }

    public String getGetOfficeList() {
        return Constants.HTTP_HEADER + address +getOfficeList;
    }

    public int getLoginFailCode() {
        return loginFailCode;
    }

    public String getExcludeUrls() {
        return excludeUrls;
    }
}
